import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui'
import axios from 'axios'
Vue.prototype.$axios=axios //定义为全局
import "element-ui/lib/theme-chalk/index.css"
import './assets/css/global.css'
import "./axios"
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min'
import 'font-awesome/css/font-awesome.min.css'

Vue.use(Element)

Vue.config.productionTip = false
Vue.prototype.$axios = axios //

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

router.afterEach((to, from) => {
  if(to.meta.title){
    document.title = to.meta.title
  }
})
